Skip to content

fix(assemble)·feat: 빈 배열 처리 및 keepNonHangul 옵션 추가 - #409

Open
rjsgud49 wants to merge 2 commits into
toss:mainfrom
rjsgud49:feat/assemble-empty-and-keep-non-hangul
Open

rjsgud49 wants to merge 2 commits into
toss:mainfrom
rjsgud49:feat/assemble-empty-and-keep-non-hangul

Conversation

@rjsgud49

Copy link
Copy Markdown

Overview

assemble([])에서 발생하던 TypeError를 수정하고, getJungseong / getJongseong에 getChoseong과 동일한 keepNonHangul 옵션을 추가합니다.

fix(assemble)

  • reduce에 초기값 ''를 넣어 빈 배열 입력 시 TypeError 대신 빈 문자열을 반환합니다.
  • assemble([]) // ''

feat(getJungseong / getJongseong)

  • keepNonHangul: true일 때 숫자·기호 등 비한글 문자를 유지합니다.
  • 기본 동작(false)은 기존과 동일합니다.
getJungseong('네이버123', { keepNonHangul: true }) // 'ㅔㅣㅓ123'
getJongseong('값123', { keepNonHangul: true })     // 'ㅄ123'

PR Checklist

  • I read and included theses actions below
  1. I have read the Contributing Guide
  2. I have written documents and tests, if needed.

Made with Cursor

rjsgud49 and others added 2 commits October 20, 2026 15:52
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@rjsgud49
rjsgud49 requested a review from raon0211 as a code owner October 20, 2026 06:52
@changeset-bot

changeset-bot Bot commented Oct 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6a406a2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
es-hangul Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
es-hangul Error Error Oct 20, 2026 6:52am UTC

Request Review

This branch had an error being deployed

1 failed deployment
Preview — 6a406a2a Deployed Oct 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant